home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / program / 575 / okami13b / help < prev    next >
Encoding:
Text File  |  1991-12-15  |  8.3 KB  |  224 lines

  1. Internal Commands:
  2.  
  3. DISPLAYING AND MANIPULATING DATA
  4.  cat [-b] {file}        copy file(s) to StdOut
  5.  crypt [key]            encrypt or decrypt StdIn to StdOut
  6.  echo {string}            write strings to StdOut
  7.  fgrep [-cfl] pattern {file}    find pattern, fixed string only
  8.  grep [-cfsl] pattern {file}    find pattern, allows extended wildcards
  9.  hd {file}            Hex dump
  10.  more {file}            show file in pages
  11.  pg {file}            same as more
  12.  raw [-bnc] {file}        put file(s) on raw console
  13.  split [-bfv] [-Num] {file}    break file into pieces of Num lines each
  14.  tee file            copy StdIn to StdOut and to file
  15.  tr fltrfile            filter StdIn to StdOut according to fltrfile
  16.  wc [-lwcn] {file}        count lines, words, and characters
  17.  what [-s] {file}        identify files by @(#)
  18.  
  19. MAINTAINING FILES AND DIRECTORIES 
  20.  chmod (+|-)[cdhrsvf] file    change file attributes
  21.  cp [-acCvifq] src {src} dest    copy files
  22.  ls [-adlfkCvixtnbr] {filespec}    list files
  23.  mkdir [-r] dir {dir}        create a directory
  24.  mv [-vif] src {src} dest    move or rename files
  25.  rm [-friqv] file {file}    remove files
  26.  rmdir path {path}        remove directories
  27.  touch file {file}        update date-time-stamp or create a file
  28.  
  29. SHELL PROGRAMMING
  30.  . file             execute a file as a shell script
  31.  [ expr ]            same as test
  32.  alert icn def boxt butt [var]    (*) display an AES alert box
  33.  exec [-lbxg] file {Parameter}    execute a file as a binary program
  34.  exit                finish a script
  35.  false                returns 0
  36.  fsel [filespec [name [var [lbl]]]]   (*) select a file with the fileselect box
  37.  if, then, else, fi        see below
  38.  indir String            send String once more through the evaluator
  39.  read [[-] variable]        read a variable from StdIn
  40.  sleep [-s] Time        wait for a while
  41.  test [expr]            evaluate a logical expression
  42.  true                returns 1
  43.  while, do, break, done     see below
  44.  xargs [Command {Parameter}]    perform with lines from StdIn, replace {}
  45.  
  46. SHELL AND SYSTEM MANAGEMENT AND CONFIGURATION
  47.  alias name string        set up a shell function
  48.  clipb [path]            (*) configure the AES clipboard ($CLIPDIR)
  49.  cursor [(+|-)bv] [rate]    configure VT52 cursor
  50.  date [+DateFmt]        show time and date
  51.  df [-dnmbf] {drive}        disk space info
  52.  drive drive{drive} [name]    get/set drive names
  53.  du [-brft] {directory}        disk usage info & directory tree
  54.  exit                finish the shell
  55.  export [[-] {Variable}]    mark or unmark for envir. (wildcards allowed)
  56.  goff                exit from AES application
  57.  gon [-q]            init as AES application or query
  58.  hash [-r] [Cmd [Path]]        read&set the hash table (wildcards allowed)
  59.  keyb [-] | ([(+|-)abc] [-ir])    konfigure the keyboard
  60.  keydef [+nsca] key [text|-]    redefine the keyboard
  61.  mouse [+|-] [form] [Var [Var [Var]]]    (*) configure or query the mouse
  62.  readonly [[-] {variable]}    make variables readonly (wildcards allowed)
  63.  rdti [-dclxv] [filename]    configure shell from desktop.inf
  64.  rsconf [-spbw] [(+|-)xr]    configure the serial interface (RS232)
  65.  scr [-bwghl]            set backgr.col and (*) # of lines (hires only)
  66.  shutdown [-rRtfv]        shut down or reset the system
  67.  trap [-|[+]Command {Parameter}] set a command to execute on shell exit
  68.  unalias name {name}        same as unset
  69.  unset name {name}        delete shell functions
  70.  
  71. SHELL AND SYSTEM MONITORING
  72.  adr                show some system adresses
  73.  basep [-ap] [adress]        find or analyse a basepage
  74.  cmds [-Ca] {pattern}        list internal commands (wildcards allowed)
  75.  cookie [-xdn0sc] {cookie}    read out the cookie jar (wildcards allowed)
  76.  env                show the shell's environment
  77.  errcode {Number|errno}        explain an error number
  78.  fcts                list Shell functions
  79.  history [-l]            load or save the history list
  80.  mem [-b]            show free or total RAM
  81.  memex [-acwls] Adress [Number] examine memory
  82.  pmd                produce a post mortem dump
  83.  set [-|(+|-)blxschu]        show/set Shell flags
  84.  time Command {Parameter}    command run time
  85.  type [-fs] command {command}    show calling path of command
  86.  vars [-aexs]            list Shell variables
  87.  ver [-oclgtdmMa]        show shell & OS version numbers
  88.  
  89. UTILITIES
  90.  backup [-nNrq] [path]        save files to disk
  91.  dial [-q|-f file|{No|Id|-d}]    dial a phone number on the modem
  92.  find path filespec        list matching files
  93.  getscr [-[header] filename]    get screen bit image
  94.  man [command]            online help
  95.  putscr [-(f|s filename)]    show/save a screen bit image
  96.  rpn [Fmt] rpn-expr        RPN calculator
  97.  sort [-lnrs]            sort StdIn to StdOut
  98.  te [-dk] [Dev {file|:string}]    terminal emulator
  99.  ts [-hlpbmdtref]        terminal server
  100.  upn [Fmt] rpn-expr        same as rpn
  101.  virus [-xvsi] {drive}        find & extinguish bootsector viruses
  102.  
  103. MISCELLANIOUS
  104.  basename file [extender]    find filename (a:\okami\sh.ttp -> sh.ttp)
  105.  bombs n            terminate with n bombs (n>=2)
  106.  cd [path]            change work directory
  107.  cls                clear the screen
  108.  dark                darken the screen (same as ^A)
  109.  dirname file            find path (a:\okami\sh.ttp -> a:\okami\)
  110.  drvname file            find drive (a:\okami\sh.ttp -> a:)
  111.  extname file            find extender (okami\sh.ttp -> .ttp)
  112.  fullname file            find absolute filename
  113.  hardcopy            print contents of screen
  114.  help                same as pg $HOME/help
  115.  logo [x [y]]            draw the Okami logo
  116.  pwd [-a|{Drive}]        print work directory
  117.  
  118.  
  119.  (*) command can only be used after gon has been called.
  120.  
  121.  drive:     e.g.    d:
  122.  path:        e.g.    d:\okami
  123.  file:        e.g.    d:\okami\sh.ttp
  124.  filespec:    e.g.    d:\okami\*.sh        or file
  125.  source,dest:    file
  126.  fltrfile:    file
  127.  pattern:    any string
  128.  Number:    eg. 123 (dec), 0xabc (hex), 0123 (oct), %110 (bin), !A (char)
  129.  Adress:    Number
  130.  Time:        Number
  131.  rate:        0:still, 30:normal, <30:faster, >30:slower
  132.  expr:        a logical expression, see "test" in commands.doc
  133.  rpn-expr:    an RPN expression
  134.  Fmt:        a printf format string
  135.  DateFmt:    special printf-like format, see "date" in commands.doc
  136.  form:        0 arrow, 1 hourglass, 2 bee, 3 pointing hand, 4 flat hand,
  137.         5 thin crosshair, 6 thick crosshair, 7 outlined crosshair
  138.  
  139.  
  140.  Commands with optional file (eg. hd [file]) take StdIn if no file is given.
  141.  
  142.  
  143.  Extended Wildcards:
  144.  *    matches anything
  145.  ?    matches one character
  146.  [xyz]    matches x, y, or z
  147.  [x-z]    matches x, ..., z
  148.  [~xy]    matches any character except x and y
  149.  
  150.  Conditional execution:
  151.  if command        Executes commands1 if command returns a non-zero
  152.  then            exit value and commands2 if command returns a
  153.    commands1        zero exit value. "else command2" may be ommitted.
  154.  else            command can be "test expr" or "[ expr ]" (see
  155.    commands2        "test").
  156.  fi            This works with shell scripts and in interactive
  157.             mode.
  158.  
  159.  Looping:
  160.  while command        Executes commands2 until command returns a zero
  161.  do            exit value. break may be used within an if-fi-
  162.    commands2        construct and quits the loop immediately.
  163.    <may include:>    continue may be used within an if-fi-contruct and
  164.    break <or>        starts a new loop immediately.
  165.    continue        This works with shell scripts (and functions) only.
  166.  done
  167.  
  168.  Function deklaration:
  169.  functionname(filename) generates "functionname" from file
  170.  (filename)        generates `basename filename` from file
  171.  functioname()        generates "functionname" with the given
  172.  {            commands
  173.    commands...
  174.  }
  175.  functionname()     removes the named function
  176.  {}
  177.  
  178.  `filename' may be a shell script or executable program file.
  179.  
  180.  
  181.  I/O redirection:
  182.  <            redirect StdIn
  183.  >            redirect StdOut, create
  184.  >>            redirect StdOut, append
  185.  n>            redirect File-Descr. n, create (n=2: StdErr)
  186.  n>>            redirect File-Descr. n, append (n=2: StdErr)
  187.  |            pipe
  188.  <<[-]eofstring        inline document
  189.  `...`            command substitution
  190.  
  191.  Devices:
  192.  A:            Disk Drive A:
  193.  B:            Disk Drive B: etc.
  194.  CON:            Console (screen and keyboard)
  195.  PRT:            Printer (parallel port)
  196.  AUX:            RS232 (serial Port [Modem])
  197.  NULL:            nowhere (set $NULL to specify)
  198.  
  199.  Keyboard command entry:
  200.  Backspace        erase last character
  201.  Up-Arrow        display previous in history (*)
  202.  Dn-Arrow        display next in history (*)
  203.  Lt-Arrow        move cursor (**)
  204.  Rt-Arrow        move cursor (**)
  205.  Ctrl Space        restore from previous input
  206.  Insert         insert a space
  207.  Ctrl Insert        toggle insert/overwrite mode
  208.  Delete            delete a char
  209.  Ctrl Delete        delete to end of line
  210.  Clr Home        erase line
  211.  Esc            filename completion
  212.  Shift Esc        filename-expand last word
  213.  Help            explain current command using $HELPFILE
  214.  Ctrl Shift Undo    deactivate keydefs (valid until ENTER)
  215.  Control F        select a file via fileselect box (***)
  216.  Control P        execute the shell function "screensave"
  217.  Control A        darken screen, resume with any key
  218.  Alternate Space    display time&date until Space is released
  219.  Control D        abort the shell
  220.  
  221.  (*) with Ctrl: execute, with Shift: last match
  222.  (**) normal: one char, with Ctrl: one word, with Ctrl: beg/end of line
  223.  (***) needs gon
  224.